package com.tuanzi.loan.web.lazy.miniApps.articleLibrary;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.miniApps.articleLibrary.HealthHeadlineService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.miniApps.articleLibrary.HealthHeadlineRequest;
import com.tuanzi.loan.vo.response.miniApps.articleLibrary.HealthHeadlineResponse;

/**
* @author weibifeng
*/
public class HealthHeadlineListLazyDataModel extends BaseLazyDataModel<HealthHeadlineRequest, HealthHeadlineResponse> {

	private static final long serialVersionUID = -8524751302590740632L;
	
	private HealthHeadlineService healthHeadlineService = SpringContextHolder.getBean(HealthHeadlineService.class); 

	public HealthHeadlineListLazyDataModel(HealthHeadlineRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<HealthHeadlineResponse> doLoad(
			PageSearcher<HealthHeadlineRequest> pageSearcher) {
		return healthHeadlineService.list(pageSearcher);
	}

}
